package com.marktotop.learnone;

import com.marktotop.learnone.service.UserService;
import com.marktotop.learnone.service.UserServiceImpl;

/**
 * 静态工厂类
 * @author WXLD
 * @data 2021/4/17 - 14:01
 */
public class StaticFactory {

    public static UserService getService(){
        System.out.println("static factory create Object....");
        return new UserServiceImpl();
    }
}
